package com.yonyou.pmclouds.milestone.entity;

import com.yonyou.pmclouds.basecom.entity.SuperVO;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 计划里程碑
 *
 * @author th
 * @date 2019/11/6 14:59
 */
@Data
@Table(name = "pm_milestone")
public class MilestoneVO extends SuperVO {
    public static final String CODE = "code";
    public static final String NAME = "name";

    @Id
    private String pkMilestone;
    @NotNull
    @Max(value = 50)
    private String code;
    @NotNull
    @Max(value = 50)
    private String name;
    private String pkTenant;
    /**
     * 关联单据类型
     */
    private String relatedBillType;
    private Byte enableStatus;

    private String creator;
    private Date creationtime;
    private String modifier;
    private Date modifytime;

    @Transient
    private String strRelatedBillType;
}
